﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ExpressionEvaluator;
using ExpressionEvaluator.Expression;

namespace Calculator.Expression.Unary
{
    public class Negative : UnaryAbstract
    {
        int priority;

        public Negative(Expr v)
        {
            Value = -1 * v.Value;
        }

        public override string ToString()
        {
            return Value.ToString();
        }

        public override string Name
        {
            get { return Value.ToString(); }
        }

        public override Expr diff(Expr expr)
        {
            throw new NotImplementedException();
        }
    }
}
